package com.eipc.model;

/**
 * 球员信息
 * @author x_liaolijun
 *
 * 2010-9-22 下午04:05:59
 *  
 * Player
 *
 */
public class Player {
	public int id;
	public int playerId;
	public String bat;
	public String birthAddress;
	public String birthday;
	public String bonus;
	public String cnName;
	public String cnSname;
	public String country;
	public String enCountry;
	public String enBirthAddress;
	public String enMemo;
	public String enName;
	public String enPermanentAddress;
	public String enSname;
	public String face;
	public String hegith;
	public String lastRaceFail;
	public String lastRaceWin;
	public String lastTurnCount;
	public String lastTurnDate;
	public String memo;
	public String newsRaceFail;
	public String newsRaceWin;
	public String num;
	public String permanentAddress;
	public String professionalYear;
	public String raceChamCount;
	public String seedNumber;
	public String weight;
	public String gameId;
	public String wildCard;
	
	private final String strFaceURL_Pre= "http://www.shanghairolexmasters.com/China/playerfaceon.do?player.id=";
	
	public Player(int id, String playerId, String bat, String birthAddress,
			String birthday, String bonus, String cnName, String cnSname,
			String country, String enCountry, String enBirthAddress,
			String enMemo, String enName, String enPermanentAddress,
			String enSname, String face, String hegith, String lastRaceFail,
			String lastRaceWin, String lastTurnCount, String lastTurnDate,
			String memo, String newsRaceFail, String newsRaceWin, String num,
			String permanentAddress, String professionalYear,
			String raceChamCount, String seedNumber, String weight,
			String gameId, String wildCard) {
		this.id = id;
		this.playerId = Integer.valueOf(playerId);
		this.bat = bat;
		this.birthAddress = birthAddress;
		this.birthday = birthday;
		this.bonus = bonus;
		this.cnName = cnName;
		this.cnSname = cnSname;
		this.country = country;
		this.enCountry = enCountry;
		this.enBirthAddress = enBirthAddress;
		this.enMemo = enMemo;
		this.enName = enName;
		this.enPermanentAddress = enPermanentAddress;
		this.enSname = enSname;
		this.face =  strFaceURL_Pre+playerId;
		this.hegith = hegith;
		this.lastRaceFail = lastRaceFail;
		this.lastRaceWin = lastRaceWin;
		this.lastTurnCount = lastTurnCount;
		this.lastTurnDate = lastTurnDate;
		this.memo = memo;
		this.newsRaceFail = newsRaceFail;
		this.newsRaceWin = newsRaceWin;
		this.num = num;
		this.permanentAddress = permanentAddress;
		this.professionalYear = professionalYear;
		this.raceChamCount = raceChamCount;
		this.seedNumber = seedNumber;
		this.weight = weight;
		this.gameId = gameId;
		this.wildCard = wildCard;
	}

	public Player(int id, String playerId, String bat, String birthAddress,
			String birthday, String cnName, String cnSname, String country,
			String enCountry, String enBirthAddress, String enMemo,
			String enName, String enPermanentAddress, String enSname,
			String face, String hegith, String permanentAddress,
			String professionalYear, String seedNumber, String weight,
			String wildCard) {
		this.id = id;
		this.playerId = Integer.valueOf(playerId);
		this.bat = bat;
		this.birthAddress = birthAddress;
		this.birthday = birthday;
		this.cnName = cnName;
		this.cnSname = cnSname;
		this.country = country;
		this.enCountry = enCountry;
		this.enBirthAddress = enBirthAddress;
		this.enMemo = enMemo;
		this.enName = enName;
		this.enPermanentAddress = enPermanentAddress;
		this.enSname = enSname;
		this.face =  strFaceURL_Pre+playerId;
		this.hegith = hegith;
		this.permanentAddress = permanentAddress;
		this.professionalYear = professionalYear;
		this.seedNumber = seedNumber;
		this.weight = weight;
		this.wildCard = wildCard;
	}

	public Player() {
	}

	public Player(String playerId, String bat, String birthAddress,
			String birthday, String bonus, String cnName, String cnSname,
			String country, String enCountry, String enBirthAddress,
			String enMemo, String enName, String enPermanentAddress,
			String enSname, String face, String hegith, String lastRaceFail,
			String lastRaceWin, String lastTurnCount, String lastTurnDate,
			String memo, String newsRaceFail, String newsRaceWin, String num,
			String permanentAddress, String professionalYear,
			String raceChamCount, String seedNumber, String weight,
			String gameId, String wildCard) {
		this.playerId = Integer.valueOf(playerId);
		this.bat = bat;
		this.birthAddress = birthAddress;
		this.birthday = birthday;
		this.bonus = bonus;
		this.cnName = cnName;
		this.cnSname = cnSname;
		this.country = country;
		this.enCountry = enCountry;
		this.enBirthAddress = enBirthAddress;
		this.enMemo = enMemo;
		this.enName = enName;
		this.enPermanentAddress = enPermanentAddress;
		this.enSname = enSname;
		this.face =  strFaceURL_Pre+playerId;
		this.hegith = hegith;
		this.lastRaceFail = lastRaceFail;
		this.lastRaceWin = lastRaceWin;
		this.lastTurnCount = lastTurnCount;
		this.lastTurnDate = lastTurnDate;
		this.memo = memo;
		this.newsRaceFail = newsRaceFail;
		this.newsRaceWin = newsRaceWin;
		this.num = num;
		this.permanentAddress = permanentAddress;
		this.professionalYear = professionalYear;
		this.raceChamCount = raceChamCount;
		this.seedNumber = seedNumber;
		this.weight = weight;
		this.gameId = gameId;
		this.wildCard = wildCard;
	}
		
//	select ID,CN_NAME,CN_SNAME,COUNTRY,
//	EN_COUNTRY,EN_NAME,EN_SNAME,SEED_NUMBER,
//	BAT,BIRTHDAY,BIRTH_ADDRESS,EN_BIRTHADDRESS,
//	PERMANENT_ADDRESS,EN_PERMANENTADDRESS,
//	HEIGHT,WEIGHT,NUM,WILDCARD FROM atp_player
	

	
	
	public Player(String playerId, String cnName, String cnSname,
			String country, String enCountry,
			String enName,String enSname,String seedNumber,
			String bat,String birthday,
			String birthAddress,String enBirthAddress,
			String permanentAddress,String enPermanentAddress,  
			String hegith,String weight,			  
			String num,String wildCard) {
		this.playerId = Integer.valueOf(playerId);
		this.bat = bat;
		this.birthAddress = birthAddress;
		this.birthday = birthday;
		this.bonus = "";
		this.cnName = cnName;
		this.cnSname = cnSname;
		this.country = country;
		this.enCountry = enCountry;
		this.enBirthAddress = enBirthAddress;
		this.enMemo = "";
		this.enName = enName;
		this.enPermanentAddress = enPermanentAddress;
		this.enSname = enSname;
		this.face = strFaceURL_Pre+playerId;
		this.hegith = hegith;
		this.lastRaceFail = "";
		this.lastRaceWin = "";
		this.lastTurnCount = "";
		this.lastTurnDate = "";
		this.memo = "";
		this.newsRaceFail = "";
		this.newsRaceWin = "";
		this.num = num;
		this.permanentAddress = permanentAddress;
		this.professionalYear = "";
		this.raceChamCount = "";
		this.seedNumber = seedNumber;
		this.weight = weight;
		this.gameId = "";
		this.wildCard = wildCard;
	}
}
